package com.sangananitsolution.fragments;

import android.app.FragmentTransaction;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;

import com.sangananitsolution.gogoproject.R;

public class MygarbageSale extends android.app.Fragment {
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		View view = inflater.inflate(R.layout.mygarbagesale, container, false);

		view.findViewById(R.id.imgsearchMysearch).setOnClickListener(
				new OnClickListener() {

					@Override
					public void onClick(View v) {
						// Open the new fragmnet for enter the new inforamtion

						android.app.FragmentManager fragmentManager = getFragmentManager();
						android.app.FragmentTransaction fragmentTransaction = fragmentManager
								.beginTransaction();

						fragmentTransaction
								.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE);

						fragmentTransaction.addToBackStack(null);
						fragmentTransaction.replace(R.id.mainfragmentlayout,
								new MyGarbageSale_CreateNew());
						fragmentTransaction.commit();

					}
				});
		return view;
	}

}
